//
//  UIFactory.swift
//  sinazd
//
//  Created by apple on 16/3/11.
//  Copyright © 2016年 apple. All rights reserved.
//

import UIKit
class UIFactory {
    
    class func labelWith(text:String,textColor:UIColor,fontSize:CGFloat,alignment:NSTextAlignment = .Center)
        ->UILabel {
            let l = UILabel.labelWith(text, textColor: textColor, fontSize: fontSize,alignment: alignment)
            return l
    }
    
    class func buttonWithImage(imageName:String?,backImageName:String?) ->UIButton {
        
        let btn = UIButton.buttonWithImage(imageName, backImageName: backImageName)
        return btn
        
    }
    
    class func buttonWithTitle(title:String,backImageName:String?,textColor:UIColor,fontSize:CGFloat,imageName:String? = nil) ->UIButton {
        
        let btn = UIButton.buttonWithTitle(title, backImageName: backImageName, textColor: textColor, fontSize: fontSize,imageName:imageName)
        return btn
        
    }
    
}
